package old.apiday01;

public class StringDemo {
    public static void main(String[] args) {
        String s1=new String("hello");
        String s2="hello";
        System.out.println(s1==s2);
        System.out.println(s1.equals(s2));//判断内容是否相等

    }
}
